export function getCommentsByHouseId(id: number) {
  return request.get(`/comment/${id}`)
}

export function sendCommentAPI(userId: number, houseId: number, content: string) {
  return request.post(`/comment`, {
    userId,
    houseId,
    content,
  })
}

export function getFinishCommentAPI(userId: any) {
  return request.get(`/comment/finish/${userId}`)
}

export function deleteCommentAPI(id: number) {
  return request.delete(`/comment/${id}`)
}

